package com.sptpc.learnspring.mapper;

import com.sptpc.learnspring.model.Category;
import com.sptpc.learnspring.vo.CategoryVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);

    List<Category> getAllCategories();

    CategoryVO selectByPrimaryKeyWithDrinks(Long id);
}